import Vue from 'vue'
import Router from 'vue-router'
import Home from "../components/Home";
import MainM from "../components/home/home_aside_menus/MainM";
import UserM from "../components/home/home_aside_menus/UserM";
import RoleM from "../components/home/home_aside_menus/RoleM";
import MenuM from "../components/home/home_aside_menus/MenuM";
import DrinkM from "../components/home/home_aside_menus/DrinkM";
import EntremetsM from "../components/home/home_aside_menus/EntremetsM";
import SellM from "../components/home/home_aside_menus/SellM";
import StockM from "../components/home/home_aside_menus/StockM";
import OrderQueryM from "../components/home/home_aside_menus/OrderQueryM";
import OrderQueueM from "../components/home/home_aside_menus/OrderQueueM";
import Login from "../components/Login";

Vue.use(Router)

export default new Router({
  routes: [
    {path:'/',component:Login},
    {
      path: '/home', component: Home, children: [
        {path: '', component: MainM},
        {path: 'userM', component: UserM},
        {path: 'roleM', component: RoleM},
        {path: 'menuM', component: MenuM},
        {path: 'drinkM', component: DrinkM},
        {path: 'entremetsM', component: EntremetsM},
        {path: 'sellM', component: SellM},
        {path: 'StockM', component: StockM},
        {path: 'orderQueryM', component: OrderQueryM},
        {path: 'orderQueueM', component: OrderQueueM}
      ]
    }
  ]
})
